<div class="templet-set mt20 clearfix">
    <div class="text-indent">风格设置：</div>
    <div class="templet-set-pic mt10" id="radio_list">
        <ul id="style_list">
            <li>
                <a href="javascript:;" style-code="deepRed"><img src="http://img-dev.myscrmimg.cn/projects/qmyx/public/images/style/deepRed.jpg" alt=""></a>
                <div class="ta-c">
                    <label class="radio mt5">
                        <input type="radio" id="rbt_deepred" name="style" value="deepRed" />
                        <span>热卖</span>
                    </label>
                </div></li>
            <li>
                <a href="javascript:;" style-code="default"><img src="http://img-dev.myscrmimg.cn/projects/qmyx/public/images/style/Brokerdefaulthome.jpg" alt=""></a>
                <div class="ta-c">
                    <label class="radio mt5">
                        <input type="radio" id="rbt_default" name="style" value="default" />
                        <span>清爽绿</span>
                    </label>
                </div></li>
            <li>
                <a href="javascript:;" style-code="red"><img src="http://img-dev.myscrmimg.cn/projects/qmyx/public/images/style/Brokerredhome.jpg" alt=""></a>
                <div class="ta-c">
                    <label class="radio mt5">
                        <input type="radio" id="rbt_red" name="style" value="red" />
                        <span>吉祥红</span>
                    </label>
                </div></li>
        </ul>
    </div>
</div>
<div class="grid-header mt30 text-indent">导航设置：</div>
<div class="sheet">
    <table width="100%">
        <thead>
            <tr>
                <th height="34" width="60">序号</th><th width="350">导航名称</th><th>显示图</th><th width="100">操作</th>
            </tr>
        </thead>
        <tbody id="nav_setting_tbl">
            <!--
            <tr>
                <td width="60" height="34">1</td><td>顶部banner</td>
                <td></td>
                <td width="100">
                    <a href="javascript:;" class="inb mlr5"><i class="icon-op icon-op-edit"></i></a>
                    <a href="javascript:;" class="inb mlr5"><i class="icon-op icon-op-restore"></i></a>
                </td>
            </tr>
            -->
        </tbody>
    </table>
    <script id="row_tmpl" type="text/html">
        {{each list as value i}}
        <tr>
            <td height="34">
                {{i + 1}}
            </td>
            <td>{{value.nav_name}}</td>
            <td>
                {{if value.nav_name == "顶部banner"}}
                    <img src="{{value.nav_img_url}}" style="width:100%;height:50px;" />
                {{else}}
                    <img src="{{value.nav_img_url}}" style="width:50px;height:50px;" />
                {{/if}}
            <td width="100">
                <div class="js-oper-btn" style="display: none;">
                <a href="javascript:;" class="inb mlr5 permission p-500309-12-inline-block" title="编辑"><i class="icon-op icon-op-edit" oid="{{value.b_nav_settingId}}" nav_name="{{value.nav_name}}" nav_img_url="{{value.nav_img_url}}"></i></a>
                {{if value.b_nav_settingId != ""}}
                <a href="javascript:;" class="inb mlr5 permission p-500309-12-inline-block" title="还原"><i class="icon-op icon-op-restore" oid="{{value.b_nav_settingId}}"></i></a>
                {{/if}}
                </div>
            </td>
        </tr>
        {{/each}}
    </script>
</div>

<!-- 上传图片 -->
<script id="upload_tmpl" type="text/html">
    <div style="padding:10px 30px">
        <table width="100%">
            <tr>
              <td width="73" align="right" class="form-cell f14" valign="top">导航名称：</td>
              <td class="cell-split-s"><p class="c-orange lh30 f14">{{nav_name}}</p></td>
            </tr>
            <tr>
              <td width="73" align="right" class="form-cell f14" valign="top"><span class="c-red">*</span> 显示图：</td>
              <td id="fileupload" class="fileinput-button">
                  <div class="upload-wrap" id="img_wrap">
                      {{if nav_img_url != ""}}
                            <img src="{{nav_img_url}}" alt="" />
                      {{else}}
                            <div class="upload-btn" id="btn_upload"><i class="upload-icon"></i></div>
                      {{/if}}
                  </div>
                  <input type="hidden" id="img_url" value="{{nav_img_url}}" />
                  <div class="fl lh30 mt20">
                      <p class="c-gray">建议尺寸：640*180像素</p>
                        <span >
                            <span class="c-blue f13">上传图片</span>
                            <input type="file" name="file" accept="image/*" />
                        </span>
                  </div>
                  <div class="c-red f13" style="clear:both;" id="js_img_err"></div>
              </td>
            </tr>
        </table>
    </div>
</script>
